
<style>.modal-body{max-height:500px;overflow:auto;}</style>
<?php

use app\components\BaseDetailView;
use app\helpers\UserHelper;
use app\models\User;
use yii\helpers\ArrayHelper;

/* @var $model User */
?>
<?= BaseDetailView::widget([
    'model' => $model,
    'title' => '基本信息',
    'attributes' => [
        'imsi',
        'phone',
        ['attribute' => 'device_type', 'value' => ArrayHelper::getValue(UserHelper::$deviceType, $model['device_type'])],
        ['attribute' => 'user_priority', 'value' => ArrayHelper::getValue(UserHelper::$userPriority, $model['user_priority'])],
        'esn',
        ['attribute' => 'vo_coder', 'value' => ArrayHelper::getValue(UserHelper::$voCoder, $model['vo_coder'])],

    ],
]) ?>

<?= BaseDetailView::widget([
    'model' => $model,
    'title' => '鉴权数据',
    'attributes' => [
        'amf',
        'sqn',
        'k',
        'op',
        'opc',
        'start',
        'stop',
    ],
]) ?>

<?= BaseDetailView::widget([
    'model' => $model,
    'title' => '基本业务类型',
    'attributes' => [
        ['attribute' => 'is_secrecy', 'format' => 'raw', 'value' => $model->getViewName('is_secrecy')],
        ['attribute' => 'is_group', 'format' => 'raw', 'value' => $model->getViewName('is_group')],
        ['attribute' => 'is_sms', 'format' => 'raw', 'value' => $model->getViewName('is_sms')],
        ['attribute' => 'is_call_group', 'format' => 'raw', 'value' => $model->getViewName('is_call_group')],
        ['attribute' => 'is_full_duplex', 'format' => 'raw', 'value' => $model->getViewName('is_full_duplex')],
        ['attribute' => 'is_half_duplex', 'format' => 'raw', 'value' => $model->getViewName('is_half_duplex')],
    ],
]) ?>

<?= BaseDetailView::widget([
    'model' => $model,
    'title' => '基本补充业务',
    'attributes' => [
        ['attribute' => 'is_more_call', 'format' => 'raw', 'value' => $model->getViewName('is_more_call')],
        ['attribute' => 'is_call_waiting', 'format' => 'raw', 'value' => $model->getViewName('is_call_waiting')],
    ],
]) ?>

<?= BaseDetailView::widget([
    'model' => $model,
    'title' => '呼叫限制业务',
    'attributes' => [
        ['attribute' => 'is_call_in', 'format' => 'raw', 'value' => $model->getViewName('is_call_in')],
        ['attribute' => 'is_call_out', 'format' => 'raw', 'value' => $model->getViewName('is_call_out')],
    ],
]) ?>

<?= BaseDetailView::widget([
    'model' => $model,
    'title' => '呼叫前转业务',
    'attributes' => [
        ['attribute' => 'is_fwd_no_answer', 'format' => 'raw', 'value' => $model->getViewName('is_fwd_no_answer')],
        ['attribute' => 'is_fwd_on_busy_num', 'format' => 'raw', 'value' => $model->getViewName('is_fwd_on_busy_num')],
        ['attribute' => 'is_fwd_unc', 'format' => 'raw', 'value' => $model->getViewName('is_fwd_unc')],
        ['attribute' => 'is_fwd_na_num', 'format' => 'raw', 'value' => $model->getViewName('is_fwd_na_num')],
        ['attribute' => 'fwd_phone'],
    ],
]) ?>


